package com.xuecheng.model;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.ToString;

/**
 * 分页查询参数
 */

@Data
@ToString
public class PageParams {
    @ApiModelProperty(value = "当前页码，默认：1")
    private long pageNo = 1L;
    @ApiModelProperty( value = "每页显示的记录数,默认：30")
    private long pageSize = 30L;

    public PageParams(long pageNo, long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }

    public PageParams() {
    }
}
